package com.cloud.pole.fallback;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import com.cloud.pole.api.permission.PermissionApi;
import com.cloud.pole.feign.IAdminUserService;

import java.util.List;

/**
 * @author ace
 * @create 2018/3/7.
 */
@Service
@Slf4j
public class UserServiceFallback implements IAdminUserService {
	
    @Override
    public List<PermissionApi> getPermissionByUsername(@PathVariable("username") String username) {
    	log.error("调用{}异常{}","getPermissionByUsername",username);
        return null;
    }

    @Override
    public List<PermissionApi> getAllPermissionInfo() {
    	log.error("调用{}异常","getPermissionByUsername");
        return null;
    }

	@Override
	public boolean validate(String token) {
		// TODO Auto-generated method stub
		log.error("调用{}异常","validate");
        return false;
	}
}
